Skip to main content

ARDK for Android/com.nianticlabs.ardk.utils/ImageMath/affineCrop

affineCrop

[androidJvm]
fun affineCrop(source: Size, target: Size): Matrix

Returns an affine transformation that crops the source size to match the aspect ratio of the target size.

Return​

An affine transformation matrix that crops the source to fit the target aspect ratio.

Parameters​

androidJvm

sourceThe size of the source container.
targetThe size of the target container.